package com.example.tijianserver.mapper;

import com.example.tijianserver.pojo.Setmeal;
import com.example.tijianserver.pojo.Setmealdetailed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealdetailedMapper {
    int deleteByPrimaryKey(Integer sdId);

    int insert(Setmealdetailed record);

    int insertSelective(Setmealdetailed record);

    Setmealdetailed selectByPrimaryKey(Integer sdId);

    int updateByPrimaryKeySelective(Setmealdetailed record);

    int updateByPrimaryKey(Setmealdetailed record);

    @Select("select ciId from setmealdetailed where smId=#{smId} order by smId")
    public List<Integer> selectBySmId(Integer smId);
}